/*
 * @Author: 刘岩 15136056318@163.com
 * @Date: 2023-11-05 14:47:09
 * @LastEditors: 刘岩 15136056318@163.com
 * @LastEditTime: 2023-11-13 11:00:01
 * @FilePath: /react-template_pc/src/login/index.tsx
 * @Description:
 */
import { useRouter } from '@/hooks'
import user from '@/stores/User'
import { observer } from 'mobx-react-lite'
const Login = observer(() => {
  const router = useRouter()
  return (
    <>
      <div>
        {user.token}
        <button
          onClick={() => {
            user.setToken('12')
            router.push('/')
          }}
        >
          登录
        </button>
      </div>
    </>
  )
})
export default Login
